package com.bwf.file;

/**
 * @Version v1.0
 * @Description: TODO
 * @Author ZHANZHONGXIN
 * @Date 2022/5/18 14:08
 * @Copyright 博为峰
 */
public class DGDemo {
    //    StackOverflowError 栈溢出
    public static void main(String[] args) {
        show(1);
    }

    public static void show(int a) {
        System.out.println(a);
        a++;
        if (a < 5) {
            show(a);
        }
    }
}
